# httpd 2.4.37 and PHP 7.2.24
FROM gogv/centos:8-stream

# HTTPD PHP
RUN yum -y install php-json php-cli php-mysqlnd php-pdo \
	php-embedded php-opcache php-devel php-gd php-xml \
    php-common php-fpm php php-mbstring httpd \
    && mkdir /run/php-fpm \
    && sed -i 's/#ServerName www.example.com:80/ServerName 0.0.0.0:80/g' /etc/httpd/conf/httpd.conf

COPY *-foreground /etc/init.d/
COPY entrypoint.sh /usr/bin/

EXPOSE 80

CMD ["entrypoint.sh"]
